<!--  -->
<template>
  <div class>
    <div class="toP">
      <p class="toP-p">财务管理</p>
    </div>
    <div class="forM">
      <div class="forM-fm">
        <p class="forM-p">￥财务管理</p>
        <div class="forM-div">
          <span class="left">
            订单总额：￥
            <span class="red">322000.00</span>
          </span>
          <span class="left lefe">
            订单总数：
            <span class="red">32</span>
          </span>
        </div>
        <br />
        <p class="forM-p1" style="color:#fff">
          <i class="el-icon-menu"></i>筛选
        </p>
        <div class="forM-div1">
          <span>订单状态：</span>
          <label>
            <input type="checkbox" value class="inp" />
          </label>
          <span class="forM-inp">待支付</span>
          <label>
            <input type="checkbox" value class="inp" />
          </label>
          <span class="forM-inp">已关闭</span>
          <label>
            <input type="checkbox" value class="inp" />
          </label>
          <span class="forM-inp">学习中</span>
          <label>
            <input type="checkbox" value class="inp" />
          </label>
          <span class="forM-inp">已完成</span>
        </div>
        <div class="forM-div1">
          <span>订单分类：</span>
          <label>
            <input type="checkbox" value class="inp" />
          </label>
          <span class="forM-inp">课程订单</span>
          <label>
            <input type="checkbox" value class="inp" />
          </label>
          <span class="forM-inp">活动订单</span>
        </div>
        <div class="forM-el">
          <span>输入搜索：</span>
          <input type="text" class="forM-el-inp" placeholder="请输入课程..." />
          <span class="forM-el-XiaDan">下单时间：</span>
          <el-date-picker v-model="value1" type="date" placeholder="开始日期"></el-date-picker>--
          <el-date-picker v-model="value1" type="date" placeholder="结束日期"></el-date-picker>
          <el-button
            type="primary"
            icon="el-icon-s-check"
            style="width: 100px;height: 40px;margin-left: 30px; background: #9137f3;"
            @click="lookup"
          >筛选</el-button>
          <span class="forM-el-inps" @click="empty">清空筛选条件</span>
        </div>
      </div>
    </div>
    <!--结束-->
    <div class="warp">
      <div class="warp-box">
        <p class="warp-p">
          <i class="el-icon-s-fold"></i>流水列表
        </p>
        <div class="warp-div">
          <span>订单编号</span>
          <span>订单分类</span>
          <span>标题</span>
          <span>订单金额</span>
          <span>订单状态</span>
          <span>下单时间</span>
        </div>
        <div id="inps">
          <div>
            <el-table :data="tableData" style="width: 100%;font-size: 12px;">
              <el-table-column prop="date" width="230" style="line-height: 73px;"></el-table-column>
              <el-table-column prop="name" width="150" style="line-height: 73px;"></el-table-column>
              <el-table-column prop="address" width="170"></el-table-column>
              <el-table-column prop="mini" width="180"></el-table-column>
              <el-table-column prop="state" width="100"></el-table-column>
              <el-table-column prop="place" width="200"></el-table-column>
            </el-table>
          </div>
        </div>
        <div class="wrap-box-paging">
          <div class="wrap-box-pagingS">
            <el-pagination background layout="prev, pager, next" :total="100" style="color:red"></el-pagination>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>

export default {
  components: {},
  data() {
    //这里存放数据
    return {
      //数据
      tableData: [
        {
          date: "20190301023696601",
          name: "课程订单",
          address: "幼儿英语课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369602",
          name: "课程订单",
          address: "幼儿语文课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369603",
          name: "课程订单",
          address: "幼儿数学课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369604",
          name: "课程订单",
          address: "幼儿音乐课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369605",
          name: "课程订单",
          address: "幼儿美术课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369606",
          name: "课程订单",
          address: "幼儿游泳课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369607",
          name: "课程订单",
          address: "幼儿启蒙课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369608",
          name: "课程订单",
          address: "幼儿前期课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369609",
          name: "课程订单",
          address: "幼儿英语课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369610",
          name: "课程订单",
          address: "幼儿语文课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369611",
          name: "课程订单",
          address: "幼儿数学课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369612",
          name: "课程订单",
          address: "幼儿美术课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
      ],
      //备份
      abc: [
        {
          date: "20190301023696601",
          name: "课程订单",
          address: "幼儿英语课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369602",
          name: "课程订单",
          address: "幼儿语文课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369603",
          name: "课程订单",
          address: "幼儿数学课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369604",
          name: "课程订单",
          address: "幼儿音乐课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369605",
          name: "课程订单",
          address: "幼儿美术课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369606",
          name: "课程订单",
          address: "幼儿游泳课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369607",
          name: "课程订单",
          address: "幼儿启蒙课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369608",
          name: "课程订单",
          address: "幼儿前期课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369609",
          name: "课程订单",
          address: "幼儿英语课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369610",
          name: "课程订单",
          address: "幼儿语文课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369611",
          name: "课程订单",
          address: "幼儿数学课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
        {
          date: "2019030102369612",
          name: "课程订单",
          address: "幼儿美术课程",
          mini: "￥2366.00",
          state: "待支付",
          place: "2019-01-25 10:55",
        },
      ],
      //日期
      pickerOptions: {
        disabledDate(time) {
          return time.getTime() > Date.now();
        },
        shortcuts: [
          {
            text: "今天",
            onClick(picker) {
              picker.$emit("pick", new Date());
            },
          },
          {
            text: "昨天",
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24);
              picker.$emit("pick", date);
            },
          },
          {
            text: "一周前",
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit("pick", date);
            },
          },
        ],
      },
      value1: "",
      value2: "",
    };
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {
      empty:function(){
         let inp = document.getElementsByClassName("forM-el-inp")[0];
         inp.value=""
          this.tableData = this.abc;
      },
    lookup: function () {
       this.tableData=this.abc
      let inpdata = [];
      let inp = document.getElementsByClassName("forM-el-inp")[0];
      for (let j = 0; j < this.tableData.length; j++) {
        if (inp.value.trim() === this.tableData[j].address) {
          inpdata.push(this.tableData[j]);
        }
      }
     this.tableData = inpdata;
    },
  },
};
</script>
<style  scoped>
* {
  margin: 0;
  padding: 0;
}
html {
  width: 100%;
  height: 100%;
}
.toP {
  /* background: red; */
  width: 100%;
  height: 70px;
}
.toP-p {
  margin: auto;
  /* background: skyblue; */
  line-height: 70px;
  font-family: "思源黑体 Bold", "思源黑体";
  font-weight: 700;
  font-style: normal;
  font-size: 24px;
  margin-left: 25px;
  color: #9137f3;
}
.forM {
  width: 100%;
  /* background: skyblue; */
}
.forM-fm {
  margin: auto;
  width: 1100px;
  height: 350px;
  /* background: snow; */
  padding: 30px;
  padding-right: 0px;
  border: 1px solid rgb(228, 228, 228);
  border-radius: 1px;
}
.forM-p,
.forM-p1,
.warp-p {
  color: rgb(153, 153, 153);
  font-size: 15px;
}
.forM-div {
  font-size: 14px;
  margin-top: 35px;
}
.red {
  color: red;
  font-weight: bold;
}
.left {
  float: left;
}
.right {
  float: right;
}
.left:nth-child(1) {
  margin-right: 80px;
}
.forM-p1 {
  margin-top: 40px;
}
.forM-div1 {
  margin-top: 30px;
  font-size: 14px;
}
.inp {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  margin-top: -1px;
  margin-left: 10px;
}
.forM-inp {
  margin: 0 60px 0 10px;
}
.forM-el {
  font-size: 14px;
  margin-top: 35px;
}
.forM-el-inp {
  width: 170px;
  height: 35px;
  border: 1px solid rgb(228, 228, 228);
  padding: 10px;
}
.forM-el-XiaDan {
  margin-left: 40px;
  margin-right: 40px;
}
.forM-el-inps {
  font-size: 12px;
  margin-left: 10px;
  color: #9137f3;
}
.warp {
  width: 100%;
}
.warp-box {
  width: 1100px;
  height: 100%;
  margin: auto;
  margin-top: 20px;
  border: 1px solid rgb(228, 228, 228);
  padding: 30px;
}
.warp-div {
  background: rgb(145, 55, 243);
  width: 1042px;
  height: 60px;
  margin-top: 30px;
  text-align: center;
  line-height: 60px;
}
.warp-div span {
  font-size: 14px;
  color: #ffffff;
  float: left;
  display: block;
  margin-right: 120px;
  font-weight: bold;
}
.warp-div span:nth-child(1) {
  margin-left: 60px;
}
.warp-div span:nth-child(5) {
  margin: 0;
}
.warp-div span:nth-child(6) {
  margin-left: 70px;
}
.wrap-box-paging {
  height: 100px;
}
.wrap-box-pagingS {
  float: right;
  margin-top: 50px;
}
</style>